import Layout from "@/layout/index.vue";
import Form from "@/views/form/index.vue";

const routes = [
  {
    path: "/",
    name: "root",
    component: Layout,
    redirect: { name: "Form" },
    children: [
      {
        path: "form",
        name: "Form",
        component: Form,
        meta: {
          title: "标注"
        }
      },
      // {
      //   path: "tools",
      //   name: "Tools",
      //   component: () => import("@/views/tools/index.vue"),
      //   meta: {
      //     title: "工具"
      //   }
      // },
      {
        path: "list",
        name: "List",
        component: () => import("@/views/list/index.vue"),
        meta: {
          title: "列表",
          noCache: true
        }
      }
    ]
  }
];

export default routes;
